<?php
namespace app\store\validate;
use think\Validate;
use think\Db;
class Store extends Validate
{

    // 验证规则
    protected $storerule = [
        'name'            => 'require|min:1|max:150|unique:store'
    ];
    //错误信息
    protected $storemessage  = [
        'name.require'                            => '名称必填',
        'name.min'                                => '名称长度至少1个字符',
        'name.max'                                => '名称长度至多50个汉字',
        'name.unique'                             => '名称重复',
    ];

}